<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="shortcut icon" href="/public/icon.svg" type="image/x-icon" />
    <link rel="stylesheet" href="./src/style/index.less" />
    <title>UniPPT - 在线演示文稿</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      #app {
        width: 1000px;
        height: 100vh;
        overflow: hidden;
      }

      .konva-root-loading {
        transition: all 0.3s;
        animation: dialog-enter-animation 0.3s ease-in-out;
        position: absolute;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(5px);
        /* 背景模糊 */
        -webkit-backdrop-filter: blur(5px);
        /* 兼容老版本 Safari */
        z-index: 9999;
        display: flex;
        align-content: center;
        justify-content: center;
        color: var(--konva-main-color, #ff5e00);
        font-size: 22px;
      }

      .konva-root-loading > div {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      @keyframes l3 {
        to {
          transform: rotate(1turn);
        }
      }

      /* HTML: <div class="loader"></div> */
      .konva-root-loading > div .loader {
        margin-right: 10px;
        width: 36px;
        padding: 4px;
        aspect-ratio: 1;
        border-radius: 50%;
        background: var(--konva-main-color, #ff5e00);
        --_m: conic-gradient(#0000 10%, #000),
          linear-gradient(#000 0 0) content-box;
        -webkit-mask: var(--_m);
        mask: var(--_m);
        -webkit-mask-composite: source-out;
        mask-composite: subtract;
        animation: l3 1s infinite linear;
      }
    </style>
  </head>
  <body>
    <div id="app"></div>
    <div class="konva-root-loading">
      <div class="konva-root-loading-content">
        <div class="loader"></div>
        <div class="text">资源加载中...</div>
      </div>
    </div>
    <script type="module" src="./src/main.ts"></script>
  </body>
</html>
